wayland: __NR_memfd_create instead of SYS_memfd_create
authorRay Strode <rstrode@redhat.com>
Mon, 25 Jan 2016 18:55:25 +0000 (13:55 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 25 Jan 2016 18:55:25 +0000 (13:55 -0500)
It looks like the gnome-continuous headers haven't quite
caught up yet, so try __NR_memfd_create instead.

If that doesn't work, i'll likely just add in a fallback
code path.

gdk/wayland/gdkdisplay-wayland.c

index 360c4898055c7a9cf016b201dbe2e520cf3b0a5c..f200800df977b529ba29c4664fda7917840ce011 100644 (file)
@@ -934,7 +934,7 @@ create_shm_pool (struct wl_shm  *shm,
   int ret, fd;
   void *data;
 
-  ret = syscall (SYS_memfd_create, "gdk-wayland", MFD_CLOEXEC);
+  ret = syscall (__NR_memfd_create, "gdk-wayland", MFD_CLOEXEC);
 
   if (ret < 0)
     {